//
//  UIImageView+Extented.m
//  RocketProject
//
//  Created by chen jiedan on 13-8-25.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import "UIImageView+Extented.h"

@implementation UIImageView (Extented)


- (void) autoResizeToSetImage:(UIImage *)img
{
    if (img == nil) {
        return;
    }else{
        CGRect frame = self.frame;
        frame.size.height = img.size.height, frame.size.width = img.size.width;
        self.image = img;
        self.frame = frame;
    }
}
@end
